<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>苞米面 C++ 模板库: bmm/recent.hpp 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">苞米面 C++ 模板库
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3855b158c164314995fac6a2abe3aa9c.html">bmm</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">recent.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="recent_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160; </div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef _BMM_RECENT_HPP_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define _BMM_RECENT_HPP_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160; </div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="global_8hpp.html">global.hpp</a>&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;_BMM_NAMESPACE_BEGIN_</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160; </div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> _T&gt;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classrecent.html">   23</a></span>&#160;<span class="keyword">class </span><a class="code" href="classrecent.html">recent</a></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;{</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;    <span class="keyword">typedef</span> _T value_type;</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> std::list&lt;value_type&gt; datas_type;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> datas_type::size_type size_type;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> datas_type::reference reference;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> datas_type::const_reference const_reference;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> datas_type::iterator iterator;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> datas_type::const_iterator const_iterator;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> datas_type::reverse_iterator reverse_iterator;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    <span class="keyword">typedef</span> <span class="keyword">typename</span> datas_type::const_reverse_iterator const_reverse_iterator;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classrecent.html#a46544293b08bbca4ddfe638fab65f208">   39</a></span>&#160;    <a class="code" href="classrecent.html#a46544293b08bbca4ddfe638fab65f208">recent</a>(size_type __n = 10)</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        : _M_max_size(__n)</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    {</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    }</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160; </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="classrecent.html#a4db52b8ddc4441acabd2553bab95cccd">   47</a></span>&#160;    <a class="code" href="classrecent.html#a4db52b8ddc4441acabd2553bab95cccd">recent</a>(<span class="keyword">const</span> std::initializer_list&lt;value_type&gt; &amp;__l)</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        : _M_max_size(10)</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    {</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span> &amp;__i : __l)</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;            _M_datas.push_front(__i);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <a class="code" href="classrecent.html#ac098c1c3354d3e22fe2c9ffa24849dcb">resize</a>(10);</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classrecent.html#ad3eee323b268257b950127552c43ae08">   56</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classrecent.html#ad3eee323b268257b950127552c43ae08">push</a>(<span class="keyword">const</span> value_type &amp;__x)</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    {</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        <span class="keywordflow">while</span> (_M_datas.size() &gt;= _M_max_size)</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;            _M_datas.pop_back();</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        _M_datas.push_front(__x);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    }</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classrecent.html#a490ef620d5b39beb20f18d3a8650333d">   64</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classrecent.html#a490ef620d5b39beb20f18d3a8650333d">push</a>(value_type &amp;&amp;__x)</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    {</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        <span class="keywordflow">while</span> (_M_datas.size() &gt;= _M_max_size)</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            _M_datas.pop_back();</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        _M_datas.push_front(std::move(__x));</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classrecent.html#afec99b1f591cfd30275b3ab7c8c97215">   72</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classrecent.html#afec99b1f591cfd30275b3ab7c8c97215">pop</a>()</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        _M_datas.pop_back();</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="classrecent.html#a1d1f5bf3c1ee9c4c1103c14449395b91">   78</a></span>&#160;    reference <a class="code" href="classrecent.html#a1d1f5bf3c1ee9c4c1103c14449395b91">front</a>() noexcept</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    {</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keywordflow">return</span> *_M_datas.begin();</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    }</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno"><a class="line" href="classrecent.html#a058c9cde91c7b1f169b693356d6042da">   84</a></span>&#160;    const_reference <a class="code" href="classrecent.html#a058c9cde91c7b1f169b693356d6042da">front</a>() const noexcept</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    {</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keywordflow">return</span> *_M_datas.begin();</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    }</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classrecent.html#a0922346bad0159b06570582f76f50637">   90</a></span>&#160;    reference <a class="code" href="classrecent.html#a0922346bad0159b06570582f76f50637">back</a>() noexcept</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    {</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        iterator __tmp = _M_datas.end();</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        --__tmp;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <span class="keywordflow">return</span> *__tmp;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classrecent.html#aec30752f7cbeda35d00fb3c79fefae2a">   98</a></span>&#160;    const_reference <a class="code" href="classrecent.html#aec30752f7cbeda35d00fb3c79fefae2a">back</a>() const noexcept</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    {</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        const_iterator __tmp = _M_datas.end();</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        --__tmp;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="keywordflow">return</span> *__tmp;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    }</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classrecent.html#ac7cc0af19063d6e41bb90c5b4d60ecad">  106</a></span>&#160;    iterator <a class="code" href="classrecent.html#ac7cc0af19063d6e41bb90c5b4d60ecad">begin</a>() noexcept</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    {</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        <span class="keywordflow">return</span> _M_datas.begin();</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    }</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classrecent.html#a86fbe8138548435b71bdc9277f8b833f">  112</a></span>&#160;    const_iterator <a class="code" href="classrecent.html#a86fbe8138548435b71bdc9277f8b833f">begin</a>()<span class="keyword"> const</span></div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="keyword">    </span>{</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        <span class="keywordflow">return</span> _M_datas.begin();</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    }</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classrecent.html#adda703198b9f39f9934902702cb6ff04">  118</a></span>&#160;    iterator <a class="code" href="classrecent.html#adda703198b9f39f9934902702cb6ff04">end</a>() noexcept</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    {</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        <span class="keywordflow">return</span> _M_datas.end();</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    }</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classrecent.html#a45e4fb63fb8c2bfc3309686bf3d39376">  124</a></span>&#160;    const_iterator <a class="code" href="classrecent.html#a45e4fb63fb8c2bfc3309686bf3d39376">end</a>() const noexcept</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    {</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;        <span class="keywordflow">return</span> _M_datas.end();</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    }</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160; </div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classrecent.html#a9a769df02dba2d0e4a6466935804e640">  130</a></span>&#160;    iterator <a class="code" href="classrecent.html#a9a769df02dba2d0e4a6466935804e640">rbegin</a>() noexcept</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    {</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;        <span class="keywordflow">return</span> _M_datas.rbegin();</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    }</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160; </div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classrecent.html#af7fb5ee60b94c76703f513bf11872802">  136</a></span>&#160;    const_iterator <a class="code" href="classrecent.html#af7fb5ee60b94c76703f513bf11872802">rbegin</a>() const noexcept</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    {</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keywordflow">return</span> _M_datas.rbegin();</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    }</div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160; </div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classrecent.html#acae1ef2b8d452d080de2afcaa8f05be5">  142</a></span>&#160;    iterator <a class="code" href="classrecent.html#acae1ef2b8d452d080de2afcaa8f05be5">rend</a>() noexcept</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    {</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;        <span class="keywordflow">return</span> _M_datas.rend();</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    }</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classrecent.html#a371a1e299bf178c77a82b03adc77f339">  148</a></span>&#160;    const_iterator <a class="code" href="classrecent.html#a371a1e299bf178c77a82b03adc77f339">rend</a>() const noexcept</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    {</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <span class="keywordflow">return</span> _M_datas.rend();</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;    }</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classrecent.html#a2a0a9e21854b2866be46098fcc7aa039">  154</a></span>&#160;    size_type <a class="code" href="classrecent.html#a2a0a9e21854b2866be46098fcc7aa039">size</a>() const noexcept</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    {</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;        <span class="keywordflow">return</span> _M_datas.size();</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classrecent.html#a7efe0b710db37f521a883eb57c7134df">  160</a></span>&#160;    size_type <a class="code" href="classrecent.html#a7efe0b710db37f521a883eb57c7134df">max_size</a>() const noexcept</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <span class="keywordflow">return</span> _M_max_size;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    }</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="classrecent.html#adf39b1f3f1639fd285f50bc5210f207e">  166</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classrecent.html#adf39b1f3f1639fd285f50bc5210f207e">clear</a>() noexcept</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;    {</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        _M_datas.clear();</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    }</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="classrecent.html#ac098c1c3354d3e22fe2c9ffa24849dcb">  174</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classrecent.html#ac098c1c3354d3e22fe2c9ffa24849dcb">resize</a>(size_type __n)</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    {</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        _M_max_size = __n;</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;        <span class="keywordflow">while</span> (_M_datas.size() &gt; _M_max_size)</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            _M_datas.pop_back();</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    }</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160; </div>
<div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classrecent.html#a55bdb5d64e6a97235b92c0a207fde4cb">  182</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classrecent.html#a55bdb5d64e6a97235b92c0a207fde4cb">empty</a>() const noexcept</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    {</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keywordflow">return</span> _M_datas.empty();</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    }</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160; </div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    datas_type _M_datas;</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160; </div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;    size_type _M_max_size;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;};</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160; </div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;_BMM_NAMESPACE_END_</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160; </div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;<span class="preprocessor">#endif // _BMM_RECENT_HPP_</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassrecent_html_adda703198b9f39f9934902702cb6ff04"><div class="ttname"><a href="classrecent.html#adda703198b9f39f9934902702cb6ff04">recent::end</a></div><div class="ttdeci">iterator end() noexcept</div><div class="ttdoc">返回迭代器最后一个指针</div><div class="ttdef"><b>Definition:</b> recent.hpp:118</div></div>
<div class="ttc" id="aglobal_8hpp_html"><div class="ttname"><a href="global_8hpp.html">global.hpp</a></div><div class="ttdoc">全局设置</div></div>
<div class="ttc" id="aclassrecent_html_a490ef620d5b39beb20f18d3a8650333d"><div class="ttname"><a href="classrecent.html#a490ef620d5b39beb20f18d3a8650333d">recent::push</a></div><div class="ttdeci">void push(value_type &amp;&amp;__x)</div><div class="ttdoc">向前压入元素</div><div class="ttdef"><b>Definition:</b> recent.hpp:64</div></div>
<div class="ttc" id="aclassrecent_html_a45e4fb63fb8c2bfc3309686bf3d39376"><div class="ttname"><a href="classrecent.html#a45e4fb63fb8c2bfc3309686bf3d39376">recent::end</a></div><div class="ttdeci">const_iterator end() const noexcept</div><div class="ttdoc">返回迭代器最后一个常指针</div><div class="ttdef"><b>Definition:</b> recent.hpp:124</div></div>
<div class="ttc" id="aclassrecent_html_a0922346bad0159b06570582f76f50637"><div class="ttname"><a href="classrecent.html#a0922346bad0159b06570582f76f50637">recent::back</a></div><div class="ttdeci">reference back() noexcept</div><div class="ttdoc">弹出最后一个元素的引用</div><div class="ttdef"><b>Definition:</b> recent.hpp:90</div></div>
<div class="ttc" id="aclassrecent_html"><div class="ttname"><a href="classrecent.html">recent</a></div><div class="ttdoc">最近使用的元素。</div><div class="ttdef"><b>Definition:</b> recent.hpp:23</div></div>
<div class="ttc" id="aclassrecent_html_ac7cc0af19063d6e41bb90c5b4d60ecad"><div class="ttname"><a href="classrecent.html#ac7cc0af19063d6e41bb90c5b4d60ecad">recent::begin</a></div><div class="ttdeci">iterator begin() noexcept</div><div class="ttdoc">返回迭代器第一个指针</div><div class="ttdef"><b>Definition:</b> recent.hpp:106</div></div>
<div class="ttc" id="aclassrecent_html_a371a1e299bf178c77a82b03adc77f339"><div class="ttname"><a href="classrecent.html#a371a1e299bf178c77a82b03adc77f339">recent::rend</a></div><div class="ttdeci">const_iterator rend() const noexcept</div><div class="ttdoc">返回反向迭代器最后一个常指针</div><div class="ttdef"><b>Definition:</b> recent.hpp:148</div></div>
<div class="ttc" id="aclassrecent_html_adf39b1f3f1639fd285f50bc5210f207e"><div class="ttname"><a href="classrecent.html#adf39b1f3f1639fd285f50bc5210f207e">recent::clear</a></div><div class="ttdeci">void clear() noexcept</div><div class="ttdoc">清除容器里所有元素</div><div class="ttdef"><b>Definition:</b> recent.hpp:166</div></div>
<div class="ttc" id="aclassrecent_html_a1d1f5bf3c1ee9c4c1103c14449395b91"><div class="ttname"><a href="classrecent.html#a1d1f5bf3c1ee9c4c1103c14449395b91">recent::front</a></div><div class="ttdeci">reference front() noexcept</div><div class="ttdoc">弹出第一个元素的引用</div><div class="ttdef"><b>Definition:</b> recent.hpp:78</div></div>
<div class="ttc" id="aclassrecent_html_a46544293b08bbca4ddfe638fab65f208"><div class="ttname"><a href="classrecent.html#a46544293b08bbca4ddfe638fab65f208">recent::recent</a></div><div class="ttdeci">recent(size_type __n=10)</div><div class="ttdoc">构造函数</div><div class="ttdef"><b>Definition:</b> recent.hpp:39</div></div>
<div class="ttc" id="aclassrecent_html_a4db52b8ddc4441acabd2553bab95cccd"><div class="ttname"><a href="classrecent.html#a4db52b8ddc4441acabd2553bab95cccd">recent::recent</a></div><div class="ttdeci">recent(const std::initializer_list&lt; value_type &gt; &amp;__l)</div><div class="ttdoc">构造函数</div><div class="ttdef"><b>Definition:</b> recent.hpp:47</div></div>
<div class="ttc" id="aclassrecent_html_a86fbe8138548435b71bdc9277f8b833f"><div class="ttname"><a href="classrecent.html#a86fbe8138548435b71bdc9277f8b833f">recent::begin</a></div><div class="ttdeci">const_iterator begin() const</div><div class="ttdoc">返回迭代器第一个常指针</div><div class="ttdef"><b>Definition:</b> recent.hpp:112</div></div>
<div class="ttc" id="aclassrecent_html_a55bdb5d64e6a97235b92c0a207fde4cb"><div class="ttname"><a href="classrecent.html#a55bdb5d64e6a97235b92c0a207fde4cb">recent::empty</a></div><div class="ttdeci">bool empty() const noexcept</div><div class="ttdoc">判断容器是否为空</div><div class="ttdef"><b>Definition:</b> recent.hpp:182</div></div>
<div class="ttc" id="aclassrecent_html_a9a769df02dba2d0e4a6466935804e640"><div class="ttname"><a href="classrecent.html#a9a769df02dba2d0e4a6466935804e640">recent::rbegin</a></div><div class="ttdeci">iterator rbegin() noexcept</div><div class="ttdoc">返回反向迭代器第一个指针</div><div class="ttdef"><b>Definition:</b> recent.hpp:130</div></div>
<div class="ttc" id="aclassrecent_html_afec99b1f591cfd30275b3ab7c8c97215"><div class="ttname"><a href="classrecent.html#afec99b1f591cfd30275b3ab7c8c97215">recent::pop</a></div><div class="ttdeci">void pop()</div><div class="ttdoc">弹出最后一个元素</div><div class="ttdef"><b>Definition:</b> recent.hpp:72</div></div>
<div class="ttc" id="aclassrecent_html_acae1ef2b8d452d080de2afcaa8f05be5"><div class="ttname"><a href="classrecent.html#acae1ef2b8d452d080de2afcaa8f05be5">recent::rend</a></div><div class="ttdeci">iterator rend() noexcept</div><div class="ttdoc">返回反向迭代器最后一个指针</div><div class="ttdef"><b>Definition:</b> recent.hpp:142</div></div>
<div class="ttc" id="aclassrecent_html_af7fb5ee60b94c76703f513bf11872802"><div class="ttname"><a href="classrecent.html#af7fb5ee60b94c76703f513bf11872802">recent::rbegin</a></div><div class="ttdeci">const_iterator rbegin() const noexcept</div><div class="ttdoc">返回反向迭代器第一个常指针</div><div class="ttdef"><b>Definition:</b> recent.hpp:136</div></div>
<div class="ttc" id="aclassrecent_html_a7efe0b710db37f521a883eb57c7134df"><div class="ttname"><a href="classrecent.html#a7efe0b710db37f521a883eb57c7134df">recent::max_size</a></div><div class="ttdeci">size_type max_size() const noexcept</div><div class="ttdoc">返回最大元素数量</div><div class="ttdef"><b>Definition:</b> recent.hpp:160</div></div>
<div class="ttc" id="aclassrecent_html_ac098c1c3354d3e22fe2c9ffa24849dcb"><div class="ttname"><a href="classrecent.html#ac098c1c3354d3e22fe2c9ffa24849dcb">recent::resize</a></div><div class="ttdeci">void resize(size_type __n)</div><div class="ttdoc">重置容器的最大元素数量</div><div class="ttdef"><b>Definition:</b> recent.hpp:174</div></div>
<div class="ttc" id="aclassrecent_html_a2a0a9e21854b2866be46098fcc7aa039"><div class="ttname"><a href="classrecent.html#a2a0a9e21854b2866be46098fcc7aa039">recent::size</a></div><div class="ttdeci">size_type size() const noexcept</div><div class="ttdoc">返回元素数量</div><div class="ttdef"><b>Definition:</b> recent.hpp:154</div></div>
<div class="ttc" id="aclassrecent_html_aec30752f7cbeda35d00fb3c79fefae2a"><div class="ttname"><a href="classrecent.html#aec30752f7cbeda35d00fb3c79fefae2a">recent::back</a></div><div class="ttdeci">const_reference back() const noexcept</div><div class="ttdoc">弹出最后一个元素的常引用</div><div class="ttdef"><b>Definition:</b> recent.hpp:98</div></div>
<div class="ttc" id="aclassrecent_html_ad3eee323b268257b950127552c43ae08"><div class="ttname"><a href="classrecent.html#ad3eee323b268257b950127552c43ae08">recent::push</a></div><div class="ttdeci">void push(const value_type &amp;__x)</div><div class="ttdoc">向前压入元素</div><div class="ttdef"><b>Definition:</b> recent.hpp:56</div></div>
<div class="ttc" id="aclassrecent_html_a058c9cde91c7b1f169b693356d6042da"><div class="ttname"><a href="classrecent.html#a058c9cde91c7b1f169b693356d6042da">recent::front</a></div><div class="ttdeci">const_reference front() const noexcept</div><div class="ttdoc">弹出第一个元素的常引用</div><div class="ttdef"><b>Definition:</b> recent.hpp:84</div></div>
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
